package com.zhou.app.favourite.model.ao;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class FavAddressAo {

    @NotNull(message = "收藏组id不能为空")
    @ApiModelProperty(value = "分组id", position = 1)
    private Long groupId;

    @NotEmpty(message = "收藏地址不能为空")
    @Pattern(regexp = "^(http://|https://)([\\S]*)")
    @ApiModelProperty(value = "收藏地址", position = 2)
    private String address;

    @NotEmpty(message = "描述不能为空")
    @ApiModelProperty(value = "描述", position = 4)
    private String description;
}
